package com.feilong.edgeAI.vm;

import androidx.lifecycle.MutableLiveData;

import com.aiibt.common.core.WDViewModel;

/**
 * Created by【仿脑科技】
 *
 * @Author: potato
 * @CreateDate: 2023/12/25 17:43
 */
public class AwakeViewModel extends WDViewModel {

    public MutableLiveData<String> keyword = new MutableLiveData<>();
    public MutableLiveData<Boolean> saveData = new MutableLiveData<>();

    public void setKeyword(String kw){
//        keyword.setValue(kw);
    }

    public void save(){
//        if(!TextUtils.isEmpty(keyword.getValue())){
//            String keyPath = IvwHelper.getKeyPath();
//            FileIOUtils.writeFileFromString(keyPath,keyword.getValue());
//            saveData.setValue(true);
//            EventBus.getDefault().post(new Awake(keyword.getValue()));
//        }
    }
}
